<if condition="$data['readonly']">
	<div class="link_select form-inline" data='{:json_encode($data["data"])}' pid="{:default_val($data['config'],0)}" val="{$val|implode=','}">
		<div class="layui-input-inline x-select" style="width:100px;">
			<select disabled="disabled" class="main layui-input" id="udf_field_{$id}" name="udf_field_{$id}[]" <notempty name="validate">check="{$validate}" info="{$msg}"</notempty>></select>
		</div>
		<div class="layui-input-inline x-select"  style="width:100px;">
			<select disabled="disabled" class="sub layui-input" id="udf_field_{$id}sub" name="udf_field_{$id}[]" <notempty name="validate">check="{$validate}" info="{$msg}"</notempty>></select>
		</div>
	</div>
	<else/>
	<php>
		$str_validate='';
		if(!empty($data['validate'])){
		$str_validate='check="'.$data['validate'].'" info="{'.$data['msg'].'"';
		}
	</php>

	<div class="link_select layui-inline" data='{:json_encode($data.data)}' pid="{:default_val($$data.config,0)}" val="{:implode(',',$val)}">
		<div class="layui-input-inline x-select" style="width:100px;">
			<select class="main layui-input" id="udf_field_{$id}" name="udf_field_{$data.id}[]" {$str_validate}></select>
		</div>
		<div class="layui-input-inline x-select"  style="width:100px;">
			<select class="sub layui-input" id="udf_field_{$data.id}sub" name="udf_field_{$data.id}[]" {$str_validate}></select>
		</div>
	</div>
</if>
